package computer.close_computer_4;

/**
 * 系统的具体实现
 */
public class System implements ISystem {

    private void saveCurrentTask() {
        //do something
    }

    private void closeService() {
        //do something
    }

    private void closeScreen() {
        //do something
    }

    private void closePower() {
        //do something
    }

    @Override
    public void close() {
        saveCurrentTask();
        closeService();
        closeScreen();
        closePower();
    }
}
